<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 获取值的类型 -->
    <script>
        var a = 123;
        console.log('a'+':类型为'+typeof a);
        var b = 'string';
        console.log('b'+':类型为'+typeof b);
        var c = true;
        console.log('c'+':类型为'+typeof c);
        var d = undefined;
        console.log('d'+':类型为'+typeof d);
        var e = new Object();
        console.log('e'+':类型为'+typeof e);
        
    </script>
    <script>
        var arr = [];
        var Obj = {};
        console.log(typeof arr);
        console.log(typeof Obj);

    </script>
</body>
</html>